package staticProxy;

public class TeacherDaoProxy implements ITeacherDao{
    ITeacherDao iTeacherDao;

    public TeacherDaoProxy(ITeacherDao iTeacherDao) {
        this.iTeacherDao = iTeacherDao;
    }

    @Override
    public void teach() {
        System.out.println("代理开始------");
        iTeacherDao.teach();
        System.out.println("代理结束-------");
    }
}
